<?php /* Smarty version Smarty-3.1.13, created on 2014-11-01 00:44:33
         compiled from "D:\workspace\php\cms\templates\user_center\shareorder.tpl" */ ?>
<?php /*%%SmartyHeaderCode:17165544e572eecc073-38835701%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6ddec6002a2aa301f837a95479e44f091e1a04e7' => 
    array (
      0 => 'D:\\workspace\\php\\cms\\templates\\user_center\\shareorder.tpl',
      1 => 1414773870,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17165544e572eecc073-38835701',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_544e572f02dda2_76269990',
  'variables' => 
  array (
    'result' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_544e572f02dda2_76269990')) {function content_544e572f02dda2_76269990($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("layouts/operation/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div class="jifensq">
	<div class="jifensq-top column1080">
    	 <div class="jifensq-top-l f_l">
         	<img src="public/operation/photo/sq-suer-i.png">
         </div>
         <div class="jifensq-top-r f_l">
         	<h4>Apply rules</h4>
            <p>
            	好方法推荐：<br>
                10个值得学习的激发创意好习惯国外大师的总结<br>
                ➊每季度一次度假,轻松愉快才能有创意<br>
                ➋定期复盘,做"回顾会议"<br>
                ➌养成记录习惯(如微博),让你思路清晰心灵澄澈<br>
                ➍合有趣人物交流<br>
                ➎养成剪报习惯<br> 
            </p>
         </div>
    </div>
    <div class="jifensq-dow">
    	<h3>My application</h3>
        <p>I'm <font>Joe Smith</font>, I now apply to items I purchased Points:</p>
        <form class="pointsapplication" action="applypoints/submitContent" method="post" onsubmit="submit(this)">
        	<textarea style="width:100%; height:140px; border:1px solid #ccc; border-radius:4px;" name="content" id="content"></textarea><br>
			<input type="submit" value="">
        </form>
    </div>   
</div> 
<?php echo $_smarty_tpl->getSubTemplate ("layouts/operation/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>



<script>
    $(function(){
        var result = <?php echo $_smarty_tpl->tpl_vars['result']->value;?>
;
        if(result==1){
            alert("提交成功！");
        }else{
            alert("提交失败！");
        }
        console.log(result);
    });

    var submitCount = 0;
    function submit(form){
        if(submitCount==0){
            submitCount++;
            if(!$("#content").val()){
                alert("内容不能为空！");
                return false;
            }else{
                return true;
            }
        }else{
            console.warn("正在操作，请不要重复提交！");
            return false;
        }
    }
    $().ready(function(){
        $("[href^='#']").click(function (){location.hash=$(this).attr("href"); return false;});
        $('#myTab a').click(function (e) {
            e.preventDefault();
            $(this).tab('show');
        })
    });
</script><?php }} ?>